import Vue from 'vue'
import App from './App'
import store from './store/index.js'

import common from '@/common/common.js'
Vue.prototype.$common = common


Vue.prototype.$store = store

Vue.config.productionTip = false

App.mpType = 'app'

import {
	url1
} from 'api/common.js'
Vue.prototype.$api = url1

// 页面跳转
import {
	navigateTo
} from '@/tool/index.js'
Vue.prototype.$navigateTo = navigateTo

// 页面返回
import {
	backs
} from '@/tool/index.js'
Vue.prototype.$backs = backs

// 引入全局uView
import uView from 'uview-ui'
Vue.use(uView);

// 新建 APPBar 中间按钮
import newlyBuild from 'components/newlyBuild/newlyBuild.vue'
Vue.component('newlyBuild', newlyBuild) 

// 动态
import dynamic from 'components/dynamic/dynamic.vue'
Vue.component('dynamic', dynamic) 
// 商品
import goodsData from 'components/goodsData/goodsData.vue'
Vue.component('goodsData', goodsData) 
// 蒙层
import models from 'components/models/models.vue'
Vue.component('models', models)

// 授权蒙层
import empower from 'components/empower/empower.vue'
Vue.component('empower', empower)

const app = new Vue({
	...App
})
app.$mount()
